package com.ruoyi.order;

import com.ruoyi.common.security.annotation.EnableCustomConfig;
import com.ruoyi.common.security.annotation.EnableRyFeignClients;
import com.ruoyi.common.swagger.annotation.EnableCustomSwagger2;
import com.ruoyi.order.utils.DivisionUtil;
import com.ruoyi.order.utils.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * 订单模块启动类(ry-cloud)
 *
 * @author 12692
 */
@EnableCustomConfig
@EnableCustomSwagger2
@EnableRyFeignClients
@SpringBootApplication
public class RuoyiVehicleOrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(RuoyiVehicleOrderApplication.class, args);
    }

    @Bean
    public IdWorker BeanIdWorker(){
        return new IdWorker();
    }

    @Bean
    public DivisionUtil BeanDivisionutil(){
        return new DivisionUtil();
    }

}
